<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller{
    public function __construct(){
        parent::__construct();
        if(!session('id')){
            redirect(U('admin/Login/login'));
            exit;
        }
    }
}